﻿import mx.utils.Delegate;
class cn.eminia.AS2.Ctrl {
	var ctrl;
	function Ctrl(scope, name, callback) {
		var dd = _root.getNextHighestDepth();
		ctrl = _root.createEmptyMovieClip(name+dd, dd);
		ctrl.onEnterFrame = Delegate.create(scope, callback);
	}
	function dispose() {
		ctrl.onEnterFrame = null;
		delete ctrl.onEnterFrame;
		removeMovieClip(ctrl);
	}
}
